package com.hong.concurrent.chapter4;



/**
 * @Author csh
 * @Description 观察者模式 被观查者
 *
 * @Date 2018/6/30 11:21
 */
public class BinaryObserver extends Observer {
    public BinaryObserver(Subject subject)
    {
       super(subject);
    }

    @Override
    public void update() {
        System.out.println("Binary String:"+Integer.toBinaryString(subject.getState()));
    }
}
